package com.kuaimacode.kframework.mybatis.mapper.index;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kuaimacode.kframework.mybatis.models.index.Feedback;
import com.kuaimacode.kframework.mybatis.models.user.OrderSimple;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 投诉反馈表 Mapper 接口
 * </p>
 *
 * @author Bean
 * @since 2019-03-15
 */
public interface FeedbackMapper extends BaseMapper<Feedback> {


    Map getMaxSeqNo();

    List<OrderSimple> queryOdersByUserId(Long userId, Integer type);

    List<Feedback> queryAllFeedback(@Param("feedback") Feedback feedback);

    List<Feedback> findByAgentId(@Param("agentId") String agentId);
}